import request from '@/utils/request'

// 查询调度审核列表
export function listReviewVehicles(query) {
  return request({
    url: '/gwc/vehicles/getScheduledVehicleList',
    method: 'get',
    params: query
  })
}

// 查询调度车辆列表
export function listVehicles(query) {
  return request({
    url: '/gwc/vehicles/list',
    method: 'get',
    params: query
  })
}

// 查询调度车辆详细
export function getVehicles(dispatchId) {
  return request({
    url: '/gwc/vehicles/' + dispatchId,
    method: 'get'
  })
}

// 新增调度车辆
export function addVehicles(data) {
  return request({
    url: '/gwc/vehicles',
    method: 'post',
    data: data
  })
}

// 调度车辆
export function updateVehicles(data) {
  return request({
    url: '/gwc/vehicles',
    method: 'put',
    data: data
  })
}

// 删除调度车辆
export function delVehicles(dispatchId) {
  return request({
    url: '/gwc/vehicles/' + dispatchId,
    method: 'delete'
  })
}
